function patterns = generateProbPatterns(N)
%GENERATEPROBPATTERNS Summary of this function goes here
%   Detailed explanation goes here
    global PERCENT;
    global LOWER_BOUND;
    global UPPER_BOUND;
    global DEVIATION;
    
    %%patterns = zeros(, 2); %N patrones, input es solo X
    
    h = (UPPER_BOUND- LOWER_BOUND)/N;
    delta = h*0.01; %h/10^10;
    x = LOWER_BOUND;
    y = LOWER_BOUND;
    patterns = [];
    i = 1;
    
    while x <= (UPPER_BOUND + delta),
        
        if rand()*PERCENT <= sqrt((x+1)^2 + y^2)
            patterns(i,1) = x;
            patterns(i,2) = y;
        end 
        
        i = i + 1;
        y = y + h;
        if y >= (UPPER_BOUND + delta)
            x = x + h;
            y = LOWER_BOUND;
        end
        
        
    end
   
    patterns = patterns';
end

